package com.intehel.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: Kele
 * @CreateDate: 2022/6/27 14:35
 * @Version:
 */
@RestController
@RequestMapping("/commodity")
public class CommodityController {

    @RequestMapping("/search")
    @PreAuthorize("hasAnyAuthority('commoditySearch')")
    public String search(){
        return "commodity-server search success";
    }
}
